<template>
  <div class="popupShow" v-if="show">
  	<div class="popupBody">
  		<div class="popupContent" v-html="title">
  		</div>
  	</div>
  	<img @click="tiprule()" class="cha" src="../../static/icon_cha.png" mode=""></img>
  </div>
</template>

<script>
export default {
  name: 'activityRule',
  props: {
    // 是否显示
    show: {
      title: Boolean,
      default: () => {
        return true
      }
    },
    // 文本域内容
    title: {
      title: Boolean,
      default: () => {
        return true
      }
    },
  },
  data() {
    return {
    }
  },
  created() {
  },
  methods: {
    tiprule(){
      this.$emit('isRule')
    }
  }
}
</script>

<style lang="scss">
  .popupBody {
  	position: relative;
  	display: flex;
  	flex-direction: column;
  	font-size: 15px;
  	padding: 0 10px;
  	width: 300px;
  	background: #fff;
  	border-radius: 9px;
  }
  .popupShow {
  	position: fixed;
  	left: 0;
  	right: 0;
  	bottom: 0;
  	top: 0;
  	background: rgba(0, 0, 0, 0.5);
  	display: flex;
  	flex-direction: column;
  	align-items: center;
  	justify-content: center;
  	z-index: 999;
  }
  .popupContent {
  	width: 100%;
  	max-height: 410px;
  	min-height: 410px;
  	overflow: auto;
  	font-size: 13px;
  	margin-top: 40px;
  }
  .cha {
  	margin-top: 15px;
  	width: 30px;
  	height: 30px;

  }
</style>
